<?php

namespace App\Http\Requests;

use Illuminate\Foundation\Http\FormRequest;

class LoginRequest extends BaseRequest
{

    public function rules()
    {
        return [
            'code' => 'required',
            'pid' => '',
        ];
    }

    public function attributes()
    {
        return [
            'email' => '账号',
            'pid' => '上级id',
        ];
    }
}
